﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OrderManager
{
    internal class Stuff
    {
        public string StuffType { get; set; }
        //public int StuffAmount { get; set; }
        public double TotalPrice { get; set; }

        public override bool Equals(object? obj)
        {
            return obj is Stuff stuff &&
                   StuffType == stuff.StuffType &&
                   TotalPrice == stuff.TotalPrice;
        }

        public override int GetHashCode()
        {
            return HashCode.Combine(StuffType, TotalPrice);
        }

        public override string ToString()
        {
            return "Stuff type:" + StuffType + "\t"+ "total price:" + TotalPrice;
        }

    }
}

